com.supermap.realspace

Class TrackingLayer3D



  • public class TrackingLayer3D
    extends InternalHandle
    3D tracking layer class.

    The 3D tracking layer works like a 2D tracking layer. Each scene window has a tracking layer. To be precise, each scene is displayed with a tracking layer. The tracking layer is a blank transparent layer, always at the top of each layer of the map. It is mainly used to temporarily store some graphic objects, some texts, etc. during a processing or analysis process. As long as the scene is displayed, the tracking layer will exist. You cannot delete the tracking layer or change its position. In addition to supporting the addition of 2D objects, 3D tracking layers also support the addition of 3D points, lines, polygons, and model objects.

    • Constructor Summary

      Constructors 
      Constructor and Description
      TrackingLayer3D() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int add(Geometry geometry, java.lang.String tag)
      Adds a geometric object of the specified label to the 3D tracking layer.
      void clear()
      Clear the geometry event object in the 3D tracking layer.
      Geometry get(int index)
      Gets the geometry object of the specified sequence number in the 3D tracking layer.
      int getCount()
      Returns the number of geometric event objects in the 3D tracking layer.
      java.lang.String getTag(int index)
      Gets the label of the geometric object of the specified sequence number in the 3D tracking layer.
      int hitTest(Point point)
      Returns the ID of the 3D geometry object corresponding to the selected screen pixel.
      int indexOf(java.lang.String tag)
      Returns the ID of the 3D geometry object in the selected tracking layer.
      boolean isVisible()
      Returns whether the 3D tracking layer is visible.
      void offset(int index, double offsetx, double offsety, double offsetz)
      The Geometry of the specified index in the 3D trace layer is offset in the x/y/z direction (only GeoModel offsets are supported).
      boolean remove(int index)
      Remove the geometry event object from the 3D tracking layer.
      boolean set(int index, Geometry geometry)
      Replaces the geometric object corresponding to the specified index in the 3D tracking layer with the specified geometric object.
      void setRotation(int index, double roationx, double roationy, double roationz)
      The Geometry of the specified index in the 3D trace layer is rotated in the x/y/z direction (only GeoModel rotation is supported).
      void setScale(int index, double scale)
      The Geometry of the specified index in the 3D tracking layer is scaled in the x/y/z direction (only GeoModel scaling is supported).
      boolean setTag(int index, java.lang.String tag)
      Sets the label of the geometric object of the specified sequence number in the 3D tracking layer.
      void setVisible(boolean value)
      Sets whether the 3D tracking layer is visible.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TrackingLayer3D

        public TrackingLayer3D()
    • Method Detail

      • getCount

        public int getCount()
        Returns the number of geometric event objects in the 3D tracking layer.
        Returns:
        The number of geometric event objects in the 3D tracking layer.
      • isVisible

        public boolean isVisible()
        Returns whether the 3D tracking layer is visible.
        Returns:
        Whether the 3D tracking layer is visible, true is visible.
      • setVisible

        public void setVisible(boolean value)
        Sets whether the 3D tracking layer is visible.
        Parameters:
        value - true is visible.
      • add

        public int add(Geometry geometry,
                       java.lang.String tag)
        Adds a geometric object of the specified label to the 3D tracking layer.
        Parameters:
        geometry - Geometry object.
        tag - The label of the geometry object to be added.
        Returns:
        The index of the geometry object to be added.
      • remove

        public boolean remove(int index)
        Remove the geometry event object from the 3D tracking layer.
        Parameters:
        index - The index of the geometry object.
        Returns:
        deletes the result, true is successfully deleted.
      • get

        public Geometry get(int index)
        Gets the geometry object of the specified sequence number in the 3D tracking layer.
        Parameters:
        index - Specifies the sequence number.
        Returns:
        Specifies the geometry object of the sequence number.
      • set

        public boolean set(int index,
                           Geometry geometry)
        Replaces the geometric object corresponding to the specified index in the 3D tracking layer with the specified geometric object. If the corresponding geometric object already exists in the index, the geometric object is deleted and replaced with the specified new geometric object.
        Parameters:
        index - The index of the geometry object.
        geometry - Geometry object.
        Returns:
        Set the result.
      • getTag

        public java.lang.String getTag(int index)
        Gets the label of the geometric object of the specified sequence number in the 3D tracking layer.
        Parameters:
        index - Specifies the sequence number.
        Returns:
        Specifies the label of the ordinal geometry object.
      • setTag

        public boolean setTag(int index,
                              java.lang.String tag)
        Sets the label of the geometric object of the specified sequence number in the 3D tracking layer.
        Parameters:
        index - The index of the geometry object.
        tag - A new label for the geometry object.
        Returns:
        tag The label of the geometry object.
      • indexOf

        public int indexOf(java.lang.String tag)
        Returns the ID of the 3D geometry object in the selected tracking layer.
        Parameters:
        tag - The label of the geometry object.
        Returns:
        NSInteger The ID of the geometry object.
      • hitTest

        public int hitTest(Point point)
        Returns the ID of the 3D geometry object corresponding to the selected screen pixel.
        Parameters:
        point - Screen pixel.
        Returns:
        NSInteger The label of the geometry object.
      • clear

        public void clear()
        Clear the geometry event object in the 3D tracking layer.
      • offset

        public void offset(int index,
                           double offsetx,
                           double offsety,
                           double offsetz)
        The Geometry of the specified index in the 3D trace layer is offset in the x/y/z direction (only GeoModel offsets are supported).
        Parameters:
        index - The geomety index number.
        offsetx - x direction offset.
        offsety - y direction offset.
        offsetz - z direction offset.
      • setRotation

        public void setRotation(int index,
                                double roationx,
                                double roationy,
                                double roationz)
        The Geometry of the specified index in the 3D trace layer is rotated in the x/y/z direction (only GeoModel rotation is supported).
        Parameters:
        index - The geomety index number.
        index - The geometry index number.
        roationx - The z direction rotates 0-360 degrees
        roationy - y direction rotation 0-360 degrees.
        roationz - The z direction rotates 0-360 degrees.
      • setScale

        public void setScale(int index,
                             double scale)
        The Geometry of the specified index in the 3D tracking layer is scaled in the x/y/z direction (only GeoModel scaling is supported).
        Parameters:
        index - The geomety index number.
        scale - The scaling factor.